package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MachineDeliverMapper;
import com.ruoyi.system.domain.MachineDeliver;
import com.ruoyi.system.service.IMachineDeliverService;
import com.ruoyi.common.core.text.Convert;

/**
 * 智能机巡检 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class MachineDeliverServiceImpl implements IMachineDeliverService 
{
	@Autowired
	private MachineDeliverMapper machineDeliverMapper;

	/**
     * 查询智能机巡检信息
     * 
     * @param id 智能机巡检ID
     * @return 智能机巡检信息
     */
    @Override
	public MachineDeliver selectMachineDeliverById(Long id)
	{
	    return machineDeliverMapper.selectMachineDeliverById(id);
	}
	
	/**
     * 查询智能机巡检列表
     * 
     * @param machineDeliver 智能机巡检信息
     * @return 智能机巡检集合
     */
	@Override
	public List<MachineDeliver> selectMachineDeliverList(MachineDeliver machineDeliver)
	{
	    return machineDeliverMapper.selectMachineDeliverList(machineDeliver);
	}
	
    /**
     * 新增智能机巡检
     * 
     * @param machineDeliver 智能机巡检信息
     * @return 结果
     */
	@Override
	public int insertMachineDeliver(MachineDeliver machineDeliver)
	{
	    return machineDeliverMapper.insertMachineDeliver(machineDeliver);
	}
	
	/**
     * 修改智能机巡检
     * 
     * @param machineDeliver 智能机巡检信息
     * @return 结果
     */
	@Override
	public int updateMachineDeliver(MachineDeliver machineDeliver)
	{
	    return machineDeliverMapper.updateMachineDeliver(machineDeliver);
	}

	/**
     * 删除智能机巡检对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteMachineDeliverByIds(String ids)
	{
		return machineDeliverMapper.deleteMachineDeliverByIds(Convert.toStrArray(ids));
	}
	
}
